{# src/Acme/StoreBundle/Resources/views/Admin/User/add.html.twig #}
{% extends '::admin_base.html.twig' %}

{% block page_wrapper %}
    {{ render(url('admin_get_page_header', {'title':'Add user'})) }}
    
    <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Require Infomation
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-6">
                                    {{ form_start(form) }}
                                    <div>{{ form_errors(form) }}</div>
                                        
                                        <div class="form-group {% if form_errors(form.username) %} has-error {% endif %}">
                                            {{ form_label(form.username) }}
                                            {{ form_widget(form.username, {'attr': {'class': 'form-control'}}) }}
                                            {{ form_errors(form.username) }}
                                        </div>
                                        
                                        <div class="form-group {% if form_errors(form.email) %} has-error {% endif %}">
                                            {{ form_label(form.email) }}
                                            {{ form_widget(form.email, {'attr': {'class': 'form-control'}}) }}
                                            {{ form_errors(form.email) }}
                                        </div>
                                        
                                        <div class="form-group {% if form_errors(form.password.first) %} has-error {% endif %}">
                                            {{ form_label(form.password.first) }}
                                            {{ form_widget(form.password.first, {'attr': {'class': 'form-control'}}) }}
                                            {{ form_errors(form.password.first) }}
                                        </div>
                                        
                                        <div class="form-group {% if form_errors(form.password.first) %} has-error {% endif %}">
                                            {{ form_label(form.password.second) }}
                                            {{ form_widget(form.password.second, {'attr': {'class': 'form-control'}}) }}
                                        </div>
                                        
                                    {{ form_end(form) }}
                                </div>
                                <!-- /.col-lg-6 (nested) -->
                                
                            </div>
                            <!-- /.row (nested) -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
    
{% endblock %}